﻿
package extremefx.ui {
	import extremefx.ui.UIComponent;
	
	/**
	 * @author Marcelo Volmaro
	 */
	public class AbstractListItem extends UIComponent {
		private var _sel:Boolean;
		private var _itemName:String;
		
		public var value:*;
		public var index:uint;
		
		public function AbstractListItem(pParams:UIParameters) {
			super();
		}
		
		public function get text():String {
			return _itemName;
		}
		
		public function set text(pName:String):void{
			_itemName = pName;
		}
		
		public function get selected():Boolean {
			return _sel;
		}
		
		public function set selected(pSelected:Boolean):void{
			_sel = pSelected;
		}
		
		public function setState(pState:uint):void {
			
		}
		
		public function get isFixedHeight():Boolean {
			return true;
		}
		
		public var onSelect:Function;
	}
}
